
#ifdef a
//删除某字符（字符指针）
#include<stdio.h>
#include<string.h>
void DelectSameChar(char input[], char tmp[], char delect_word) {
    int sz = 0;
    char* point = input;
    while (*point) {
        if (*point != delect_word) {
            tmp[sz++] = *point;
        }
        point++;
    }
    tmp[sz] = '\0';
}
int main() {
    char* input = "i love you";
    printf("字符串:%s\n", input);
    char tmp[100] = { 0 };
    char delect_word;
    printf("输入要删除的字符>>");
    scanf("%c", &delect_word);
    DelectSameChar(input, tmp, delect_word);
    puts(tmp);
}
#endif